﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Summer.IService;
using Summer.IService.v1;
//using Summer.IService.v1;
using Summer.Model;

namespace Summer.WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class usersController : ControllerBase
    {
        IusersService _usersService;
        public usersController(IusersService usersService)
        {
            _usersService = usersService;
        }

        [HttpGet]
        public users UserData(string userId)
        {
            return _usersService.GetUser(userId);
        }
    }
}